<?php

namespace app\index\model;

use think\Model;

class Post extends Model
{
    protected $table = 'forum_post';

    protected $autoWriteTimestamp = true;
	
	protected $pk = 'pid';

  //  protected $hidden = ['create_time','update_time'];
    public function user()
    {
        return $this->belongsTo('user','authorid','id');
    }
}
